import request from '@/utils/request'


export function listRegister(query) {
  return request({
    url: '/outpatient/newvisit/find',
    method: 'get',
    params: query
  })
}

export function modifyRegisterBystatus(query) {
  return request({
    url: '/outpatient/newvisit/modifyRegisterIsStatus',
    method: 'get',
    params: query
  })
}
export function addCase(query) {
  return request({
    url: '/outpatient/newvisit/addCase',
    method: 'post',
    params: query
  })
}

// 查询病人详细
export function getPost(deptId) {
  return request({
    url: '/outpatient/newvisit/listbingli/' + departId,
    method: 'get'
  })
}

export function listbingli(query) {
  return request({
    url: '/outpatient/newvisit/listbingli',
    method: 'get',
    params: query
  })
}
export function addjiuzhen(query,sss) {
  const data = {
    query,
    sss
  }
  return request({
    url: '/outpatient/newvisit/addjiuzhen',
    method: 'post',
    data: data
  })
}

